package com.gy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gy.entity.result.Notification;
import com.gy.mapper.NoticeMapper;
import com.gy.service.NoticeService;
import com.gy.vo.NoticeVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NoticeServiceImpl extends ServiceImpl<NoticeMapper, Notification> implements NoticeService {
    @Autowired
    private NoticeMapper noticeMapper;

    public List<NoticeVO> getLatestNotices() {
        return noticeMapper.findLatestNotices();
    }
}
